package com.zmn.plat.common.dto.product.tariff.base;

import com.zmn.plat.common.constant.ProductConsts;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;

/**
 * @author tanbiao
 * @description
 * @modifier
 * @since 2020/8/26 18:19
 **/
@Data
@Valid
public class BaseTariffDIO implements Serializable {
    private static final long serialVersionUID = -6004580907086117261L;
    /**
     * 业务类型：1保外 2保内
     */
    @NotNull(message = "bizType不能为空")
    @Positive(message = "bizType必须为大于0的正整数")
    private Integer bizType = ProductConsts.BIZ_TYPE_C;

    /**
     * 渠道id
     */
    @NotNull(message = "channelId不能为空")
    @Positive(message = "channelId必须为大于0的正整数")
    private Integer channelId;

    /**
     * 城市id
     */
    @NotNull(message = "cityId不能为空")
    @Positive(message = "cityId必须为大于0的正整数")
    private Integer cityId;

    /**
     * 试点标志 1不考虑 2考虑
     */
    @NotNull(message = "filterTariff不能为空")
    @Positive(message = "filterTariff必须为大于0的正整数")
    private Integer filterTariff;
}
